package cn.wolfcode.mapper;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    List<Role> listPage(QueryObject queryObject);

    //拿到对应用户的角色信息
    List<Role> SelectRelation(Long empId);

     void  insertRelation(@Param("id") Long id, @Param("ids") Long[] ids);

    void  deleteRelation( Long id);

    void deletePRelation(Long id);

    void  insertPRelation(@Param("id") Long id, @Param("ids") Long[] ids);
}